package com.fs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 收货地址
 */
@Data
@Accessors(chain = true)
@TableName("user_addr")
public class UserAddr  implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Integer id;

	private Integer userId;//用户id

	private String username;//收货人

	private String phone;//手机号

	private String addr;//详细地址

	private Integer provice;//省

	private Integer city;//市

	private Integer zone;//区

	private Boolean defaultAddr;//是否默认

	private Integer flag;//地址标签

	private Date created;

	private Date updated;

	private Integer street;

	@TableField(exist = false)
	private String proviceName;

	@TableField(exist = false)
	private String cityName;

	@TableField(exist = false)
	private String zoneName;

	@TableField(exist = false)
	private String streetName;

}
